home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
NEWTEXTF
/
SOURCE_C
/
CTONEWHA.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-25
|
298b
|
16 lines
#include "MyLibrary.h"
Handle CToNewHandle (char *cstr)
{Handle hndl;
long length;
length = CLength (cstr);
hndl = NewHandle (++length);
if (hndl == (Handle) 0)
return (hndl);
MoveHHi (hndl);
HLock (hndl);
CToC (cstr, *hndl);
HUnlock (hndl);
return (hndl);}